<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Document</title>
  <!-- <link rel='stylesheet' href='../assets/css/reset.css' />
  <script src="../assets/js/dayjs.min.js"></script> -->
  <script src="../assets/js/react.development.js"></script>
  <script src="../assets/js/react-dom.development.js"></script>
  
  <script src="https://cdn.bootcdn.net/ajax/libs/dayjs/1.11.9/dayjs.min.js"></script>
  <!-- <script src="https://cdn.jsdelivr.net/npm/antd@5.10.2/dist/antd.min.js"></script> -->
  <script src="https://cdn.jsdelivr.net/npm/antd@5.10.2/dist/antd.min.js"></script>
  <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/antd@5.10.2/dist/reset.min.css">
  <!-- <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/antd@5.10.2/dist/antd.js"> -->
  <script src="../assets/js/babel.min.js"></script>
  
</head>
<body>
  <div id="root"></div>
  <script type="text/babel">
    const { useState } = React
    const { Button } = antd
    const root = ReactDOM.createRoot(document.getElementById('root'));
    const App = () => {
      const [test, setTest] = useState('测试')
      const toChange = () => {
        setTest('改值了')
      }
      return <div>
        <div>测试</div>
        <Button onClick={toChange}>{test}</Button>
      </div>
    }
    
    
    root.render(<App/>);
  </script>
</body>
</html>